<template>
  <div class="parent">
    <p>父组件</p>
    <Child>
      <!-- <div slot="s1">
        <p class="ptest">我是插槽1</p>
        <p>dddd</p>
      </div>
      <p class="ptest" slot="s2">我是插槽2</p> -->
      <p slot-scope="props">
          {{props.text}}
      </p>
    </Child>
  </div>
</template>

<script>
import Child from "./child";
export default {
  name: "parent",
  components: {
    Child
  },
  data() {
    return {};
  }
};
</script>

<style scoped>
</style>